# -*- coding: utf-8 -*-#
#-------------------------------------------------------------------------------
# 建立者:        博智科技  
# Name:         demo803
# Description:  构造函数
# Author:       yzl
# Date:         2019-03-16
#-------------------------------------------------------------------------------

class Animal(object):
    def __init__(self,name,weight=30):
        # 构造函数
        print('这是构造函数' + name)

    # def __init__(self,name,weight):
    #     print(name)

    def doprint(self,msg):
        print(msg)

    # def animal(self):
    #     print('11111')


if __name__ == '__main__':
    animal = Animal('dog')
    animal.doprint('hello')
    # animal.animal()


# 课堂作业,传多个参数进去,初始化属性,例如传列表,字典
# 同时输出




